package com.abc.robot01.room.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * @author qiandu
 */
@Entity(tableName = ChatQuestionBean.TABLE_NAME)
data class ChatQuestionBean(
    @ColumnInfo(name = "id")
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,

    @ColumnInfo(name = "question")
    var question: String = "",

    @ColumnInfo(name = "cmd_id")
    var cmd_id: String = "",

    @ColumnInfo(name = "date")
    var date: String = "",

    @ColumnInfo(name = "type", defaultValue = "0")
    var type: Int = 0 // 类型 0 默认问题 1 自定义问题
) {
    companion object {
        const val TABLE_NAME = "chat_question"
    }
}
